import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  mode:"history",
  routes: [{
    path: '/',
    name: 'Province',
    component: () => import( '@/pages/province/Province'),
    meta: {
      keepAlive: true //需要被缓存
    }
  },{
    path: '/city/:name',
    name: 'City',
    component: () => import( '@/pages/city/City')
  },{
    path: '/county/:name',
    name: 'County',
    component: () => import( '@/pages/county/County')
  },{
    path: '/station/:name',
    name: 'Station',
    component: () => import( '@/pages/station/Station')
  },{
    path: '/provinceW',
    name: 'ProvinceW',
    component: () => import( '@/pages/provinceW/ProvinceW'),
    meta: {
      keepAlive: true //需要被缓存
    }
  },{
    path: '/cityW/:name',
    name: 'CityW',
    component: () => import( '@/pages/cityW/CityW')
  },{
    path: '/countyW/:name',
    name: 'CountyW',
    component: () => import( '@/pages/countyW/CountyW')
  },{
    path: '/stationW/:name',
    name: 'StationW',
    component: () => import( '@/pages/stationW/StationW')
  },{
    path: '/allstations',
    name: 'AllStations',
    component: () => import( '@/pages/allStations/AllStations')
  }]
})
